package com.ruoyi.flowable.mapper;

import com.ruoyi.flowable.domain.ActRejectRecord;

import java.util.List;

public interface ActRejectRecordMapper {

    /**
     * 根据ID查询
     */
    ActRejectRecord selectActRejectRecordById(Long id);

    /**
     * 查询列表
     */
    List<ActRejectRecord> selectActRejectRecordList(ActRejectRecord actRejectRecord);

    /**
     * 新增
     */
    int insertActRejectRecord(ActRejectRecord actRejectRecord);

    /**
     * 修改
     */
    int updateActRejectRecord(ActRejectRecord actRejectRecord);

    /**
     * 删除
     */
    int deleteActRejectRecordById(Long id);

    /**
     * 根据流程实例ID查询驳回记录
     */
    ActRejectRecord selectByProcInstId(String procInstId);

    /**
     * 根据流程实例ID列表批量查询驳回记录
     */
    List<ActRejectRecord> selectByProcInstIds(List<String> procInstIds);

    /**
     * 根据流程实例ID删除驳回记录
     */
    int deleteByProcInstId(String procInstId);

    /**
     * 根据流程实例ID批量删除驳回记录
     */
    int deleteByProcInstIds(String[] procInsIds);
}
